package com.example.esdemo.forms;

import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author Cary
 * @date 2022/6/22
 */
@Data
public class PostCreateForm {
    @NotBlank(message = "文章标题不能为空")
    private String title;

    @NotBlank(message = "文章内容不能为空")
    private String content;
}
